﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.MeasureUnit;

namespace Urb.Weather.Core.Manager
{
    public abstract class Conditions<U>
    {
        public string SourceName { get; set; }
        public DateTimeOffset MeasurementTime { get; set; }

        public decimal Value { get; set; }
        public U Unit { get; set; }
    }

    public class TemperatureConditions : Conditions<TemperatureUnit>
    {
        public TemperatureConditions Clone()
        {
            return MemberwiseClone() as TemperatureConditions;
        }
    }

    public class PressureConditions : Conditions<PressureUnit>
    {
        public PressureConditions Clone()
        {
            return MemberwiseClone() as PressureConditions;
        }
    }
}
